package cn.wen.forum.common.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringBootConfiguration;

/**
 * @ClassName AutoStartProjectInDefaultBrowser
 * @Author By wen
 * @Description 项目启动自动跳转论坛
 * 首页 配置类
 * @Date 2023/3/28 10:54
 * @Version 1.0
 */
@SpringBootConfiguration
public class AutoStartProjectInDefaultBrowser implements CommandLineRunner {

    @Override
    public void run(String ... args) throws Exception {
        try {
            Runtime.getRuntime().exec("cmd /c start http://192.168.2.188:8089/index.html");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

}
